package com.wnnight.wys.entity.menu;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @ClassName: Menu
 * @Description: //TODO
 * @author: CHX42
 * @date: 2022/9/9-10:30
 * @version: v1.0
 */
@Setter
@Getter
@ToString
@TableName(value = "wys_menu")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Menu {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("menu_name")
    private String menuName;
    @TableField("parent_id")
    private Integer parentId;
    @TableField("order_num")
    private Integer orderNum;
    @TableField("url")
    private String url;
    @TableField("menu_type")
    private String menuType;
    @TableField("icon")
    private String icon;

    @TableField(exist = false)
    private List<Menu> subMenu;
}
